<!DOCTYPE html>
<html>
  <head>
    <title>Demo</title>
  </head>
  <body>
    <button id="send">Cilck Me!</button>

    <script src="/socket.io/socket.io.js"></script>
    <script src="/javascripts/jquery.min.js"></script>
    <script>
      var chatTo = prompt('Enter address (leave empty if connect to yourself):');
      var socket = null;
      if (chatTo) {
        socket = io(chatTo);
      } else {
        socket = io();
      }
      $('#send').on('click', function() {
        socket.emit('newCustomerOrder', '{cid:10008, mid:80111}');
      });
    </script>
  </body>
</html>
